Amazon Interview Question

Something about data structures to code