Uber interview question

OOP related. Cannot share.