CTS interview question

Oops concepts