UST interview question

oops concept