Tripadvisor Interview Question

Design of data structures and complexity.