Compute expectations and test fairness for coin flips | Snapchat Interview Question