Orange Bus interview question

How would you approach this challenge...