Pregunta de entrevista de Bending Spoons

Questions about maths and logic