Devansh Bajpai's submission of Bear and Ladder | CodeChef