Let’s see all possible 3 flip combinations:
HHH
HHT
HTH
HTT
THH
THT
TTH
TTT
Out of 8 possibilities, 2 of them have the first 3 flips equal.
Thus, $ Pr(A) = \frac{2}{8} = \frac{1}{4} $