Pinnacle Infotech interview question

oops concepts