Amazon interview question

optimized solution need to be derived

Amazon Interview Question: optimized solution need to be derived | Glassdoor