Devesh Agarwal's submission of Buying Sweets | CodeChef