Frage im Vorstellungsgespräch bei Media.net

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