Siemens interview question

Resource optimization and data structures