PwC interview question

OO concepts