kapil garg's submission of Snape and Ladder | CodeChef