Morgan Stanley interview question

java questions