Google Interview Question

Case study