Deloitte interview question

C++ classes object orient part