Pranjal Rai's submission of Reversing directions | CodeChef