Amazon Interview Question

Only Data structures and algorithms