Pregunta de entrevista de Tarento

Asked to explain the answer for a coding qn