Fixed extra parameter
Deleted extra sqrt using function
Tested map as a foreach
Combining map to get multiplication talble