Question d’entretien chez Hudson River Trading

Coding question - very hard