Amazon Interview Question: simple data structure and alg... | Glassdoor