Microsoft interview question

Detailed discussion on my current project.