Cruise interview question

Easy design question about data structures