Lyft interview question

System design about how to design a class for a real problem