Pregunta de entrevista de CrowdStrike

Basic computer science question and write the algorithm .