aman agarwal's submission of Reverse Maximisation | CodeChef