Uber interview question

Regular algorithm and data structure question.