Pregunta de entrevista de Apple

what is wrong with this program?