Priyanshu Tiwari's submission of Maximise the Sum | CodeChef