Siemens Interview Question

Basic c++,