Amazon Interview Question: Array Manipulations, problems... | Glassdoor