Pregunta de entrevista de FNZ

Basic problem-solving and code interpretation.