XYZ interview question

oops c java c++ sql