Amrendra Kumar's submission of To and Fro | CodeChef