Bending Spoons Interview Question

basic high school math probems