Siemens interview question

Logical puzzles