EB interview question

core java