Taranpreet Singh's submission of Reversing directions | CodeChef