Pregunta de entrevista de Epic

How would you program such and such.