Microsoft interview question

A lot question for algorithm's