Deutsche Bank Interview Question

Basically java questions