Microsoft Interview Question

I was asked to solve a case study