EY Interview Question

Case interview was hard.