Flexport Interview Question

Problem solving question about data structures.