Siemens interview question

Technical