Siemens Interview Question

Basic questions on data structures and a small code on string manipulation was asked in technical round