Media.net Interview Question

How would you reduce a time complexity for a simple problem?