Hudson River Trading Interview Question

One DFS problem too, was asked