Ravi Kiran Selvam's submission of maximize the sum | CodeChef