Question d’entretien chez Apify

How would you improve time complexity of a given code?