Game of snakes on a grid | CodeChef