Amazon Interview Question

2 technical questions involving data structures.