Deutsche Bank interview question

Easy to medium