Accenture interview question

basic c++ interview question and previous project related question