Pregunta de entrevista de Swivl

General question and the task was given