Siemens interview question

Data structure Java Design patterns