Deutsche Bank interview question

OO concepts