Solve Train Timetable