Domanda di colloquio di CrowdStrike

Basic computer science question and write the algorithm .