Bending Spoons Interview Question

Math problems from high school that you usualy forget.