Savy Softwares interview question

oops concept and c