Siemens interview question

OOP, Problem solving and C++ questions