Microsoft interview question

simple coding question