IBM interview question

Core java