Shivam Mahendru's submission of Variation | CodeChef