Siemens interview question

Hard