Pergunta de entrevista da empresa Siemens

Basic DS Algorithm question and regarding projects