Hudson River Trading interview question

Algorithms,Programming Test