EPFL Interview Question

i was asked to solve mathematics exercises.