UST interview question

oops concepts