Pregunta de entrevista de Epic

Some basic math and logic questions.