Company: Flipkart
Difficulty: medium
The current selected programming language is C++20 . We emphasize the submission of a fully working code over partially correct but efficient code. Once submitted , you cannot review this problem again. You can use cout to debug your code. The cout may not work in case of syntax/runtime error. The version of GCC being used is 5.5.0 . Food Court Coupon System At a food court, customers must purchase coupon coins to purchase any food item. The food court has M coupon coins of different values so that any price of food items can be paid. Customers are given coupon coins so that the sum of coupon coins is equal to the price of the required food items. Recently the food court has updated its food menu and the highest price of a food item is now P. There are food items with every price in the range 1 to P. The food court needs to add more coupon coins so that any price in range [1,P] can be paid using these coupon coins. The food court has its own system that keeps all information of its foo