solve icecream parlor with combinations