Amazon Interview Question: return list without duplicate values | Glassdoor