Sagar Pathare's submission of Bear and Ladder | CodeChef