Pregunta de entrevista de Switchfully

Explaining your pseudocode and explain your reasoning