Shivam Mahendru's submission of A Good Problem | CodeChef