Epic interview question

A basic algorithm problem. Not hard but would be required to optimize its performance.

Epic Interview Question: A basic algorithm problem. Not hard but would be required to optimize its performance. | Glassdoor