Deutsche Bank interview question

Basically java questions