UST interview question

OOPS concepts