OpenText interview question

oops with programming and real time example