Accenture interview question

Questions on lists and arrays with DSA optimizations