Dinesh Goyal's submission of Rooks | CodeChef