Texas Instruments interview question

Oops concepts