Bending Spoons interview question

Math & logic puzzles, programming exercises