ThoughtSpot interview question

Train scheduling algorithm based on FCFS