kapil garg's submission of Attic Crossing | CodeChef