Xceedance interview question

oops concept