Integrated Research interview question

Simple java implementation.