Microsoft interview question

Programming