Ice Cream Parlor problem