Microsoft Phone Screening - Senior Software Engineer (Seattle) - Reject

Q. Given two arrays of train arrival time and departure time and number of platform (int), you have to distrube traffic equally among all platform and return the traffic distribution.
arrival = [9:00, 9:40, 9:50, 11:00, 15:00, 18:00]
departure = [9:10, 12:00, 11:20, 11:30, 19:00, 20:00]
NoP (no. of platform) = 3

For example -
//This is wrong traffic distribution as it's not equally distributed
P1: T1, T3
P2: T5, T2, T4
P3:
//Right traffic distribution
P1: T1, T3
P2: T5, T2
P3: T4

The interviewer was not very co-operative and didn't get much hints. I was not able to come up with right solution on time, any suggestion please.

Comments (3)