P(total) = P(H) + P(TH) + P(TTH) + P(TTTH) + ...
= p + (1-p)kp + ((1-p)^2)(k^2)p + ((1-p)^3)(k^3)p + ((1-p)^4))(k^4)p + ...
= p(1/(1-k(1-p)) (as k and (1-p) are less than one, the ratio is less than one and hence this is true)
= p/(1-k(1-p))
You can check if k=1 then the chance is 1 which makes sense, as eventually she will toss a heads no matter the probability if it is unchanging, and if k=0 then the probability is p, as she can only win if she tosses a head initially, as if she doesn't she can never win.