Fidelity Investments interview question

Q: Several questions about Java code