Pregunta de entrevista de Epic

Some basic programming question, not too hard