DRW Interview Question

probability question and number theory proofs