Goldman Sachs interview question

Given a C++ program to predict the output (constructor and destructor based C++ question)