Create Given a shuffled order of the trip segment, output the correct order of the trip