Gurpreet Singh's submission of Sort the Leaves | CodeChef