Microsoft interview question

Coding challenges