GRAPHISOFT interview question

Questions about given C++ code example