Jane Street Interview Question

A few math puzzle tests, nothing too complicated or too probabilistic.