Pergunta de entrevista da empresa J.P. Morgan

Explain how you came to your solution.