Bain & Company Interview Question

The second case is kind of difficult.