Mayank Tuteja's submission of To and Fro | CodeChef