UST interview question

Asked mostly on oops concepts