Jane Street Interview Question

Game problem with biased coin