Hudson River Trading interview question

Some basic probability/expected value, coding question using data structures