Pregunta de entrevista de Apify

Some LeetCode question. No suggestions!