Fidelity Investments interview question

Oops concept General java questions