Microsoft interview question

Data structure and algo