Amazon Interview Question: binary search | Glassdoor