Optimal Candy Collection

Company: Razorpay_12oct

Difficulty: medium