Bending Spoons interview question

basic high school math probems