Rename the states ∅,H,HT,HTH\emptyset, \mathrm{H}, \mathrm{HT}, \mathrm{HTH}∅,H,HT,HTH as 0,1,2,30,1,2,30,1,2,3, respectively. Let ψ(i)\psi(i)ψ(i) be the expected number of steps to reach HTH starting from iii. We have
We solve and find ψ(0)=10\psi(0)=10ψ(0)=10.