Source: https://projects.iq.harvard.edu/files/stat110/files/selected_solutions_blitzstein_hwang_probability.pdf