Unisys interview question

oops concept