Pergunta de entrevista da empresa Hudson River Trading

One DFS problem too, was asked