Siemens Interview Question

Basic DS Algorithm question and regarding projects