Microsoft interview question

All questions were easy