Pergunta de entrevista da empresa Accenture

How did you arrive at this solution?