https://www.hackerrank.com/challenges/icecream-parlor