Microsoft interview question

Alot of algorithm questions where asked