IBM Interview Question

Must be pretty strong in java