Aptech interview question

oops concept