Microsoft interview question

Completely based on technical background