McMakler GmbH interview question

Solve the assignment