Dinesh Goyal's submission of Erase All But One | CodeChef