Siemens interview question

basic C++, basic hr