Amazon Interview Question: Math flow problem having to d... | Glassdoor