Siemens interview question

Questions on data structurr