Starting to solve ice cream problem
Solved using loops