Prasanth Reddy's submission of THE LAST SUM | CodeChef