Pergunta de entrevista da empresa 99x

Asked to explain the output of a code snippet