AMD interview question

C++ code on pointers and pointers using classes