Amazon Interview Question

Fairly straightforward questions on algorithms and DS