IBM interview question

Basic Java