Pregunta de entrevista de Epic

Math, logic, and programming questions.