Flexport Interview Question

OOP question using data structures