How did he get the probability for case 3?

In how many ways can you arrange HHTT? That’s \frac{4!}{2! 2!}.