Siemens Interview Question

basic C++, basic hr