IBM interview question

Must be pretty strong in java