Lucid Imaging interview question

Programming in C++ OOPS