Deutsche Bank interview question

basic java