Optimal Candy Collection

Company: Razorpay_4sep

Difficulty: medium