hemanth baliji's submission of Buying Sweets | CodeChef