Consono interview question

Basic C++