Fidelity Investments interview question

Basic Java OOO questions