Rishabh Singhal's submission of LOCAL TRAIN | CodeChef