What is the probability of getting a specific sequence of heads and tails versus another when tossing a fair coin multiple times?
Implement sequence_probabilities(sequence_a, sequence_b). Each sequence is a string containing only H and T; return a two-element list containing the probability of each exact sequence. An exact sequence of length n has probability 1 / 2^n, regardless of its order.
sequence_a and sequence_b.[probability_a, probability_b] as floating-point values.def sequence_probabilities(sequence_a, sequence_b):