linkites infotech interview question

The interview was all around OOPS