Jane Street Interview Question

Questions involving coins.