Siemens interview question

A few case questions