Amazon Interview Question

about data structures