Siemens interview question

Oops concept