Deutsche Bank interview question

Solving brain teasers