Capital One Interview Question

Best data structures to handle certain data