Microsoft interview question

Coding, case study