IBM interview question

to correct java oop bugs