Siemens interview question

General software engineering and data structures questions