Pergunta de entrevista da empresa Deloitte

How would you think through / solve this problem?