Hudson River Trading Interview Question

Find an optimal algorithm to (..)