IBM interview question

Basic oops concept and coading