Pregunta de entrevista de Bending Spoons

Logical and math questions mostly for the first round.