Siemens interview question

technical questions can be tricky