Cruise Interview Question

Easy design question about data structures