Pergunta de entrevista da empresa J.P. Morgan

They asked two coding questions.