Hudson River Trading interview question

Easier ones were binary addition