Snake and Apple Tree | CodeChef