Taranpreet Singh's submission of LOCAL TRAIN | CodeChef