Pergunta de entrevista da empresa PwC

Situational problem asked for a technical solution.