An experiment is to flip a coin until you either get two heads in a row or two tails in a row. If that happens, you stop. Also, if you flip the coin four times without getting two in a row, you stop. Some possible sequences of flips are TT, THH and HTHT.
How many different sequences of flips are possible in this situation?