Pergunta de entrevista da empresa Citi

I was also asked to solve a puzzle, which not technical.