If `H` represents a Head and `T` represents Tail, then,
Hanif will win if outcomes are `(H,H,H)` or `(T,T,T)` .
So, `E_w = 2`
Total number of possible outcomes, `n(S) = 3^2 = 9`
So,Probability Hanif will win ,`P(E_w) = E_w/(n(S)) = 2/9`
Probability Hanif will lose `=1-P(E_w) = 1-2/9 =7/9`