Uber interview question

Case Interview (mental math, problem solving)