Solution for Multiplication Table