Siemens Mobility interview question

DSA easy to medium questions