Wipro interview question

oops concepts