Pergunta de entrevista da empresa JPMorganChase

A very complicated brain teaser question