Microsoft interview question

Basic algorithm and data structures,