Probability for a weighted coin flip

Also, please take a look at our homework policy