https://practice.geeksforgeeks.org/problems/shop-in-candy-store/0