McKinsey & Company interview question

Had to complete the solve assessment