ITnow (NY) interview question

about oops and coding on core java