Square Interview Question

Python - String type Q (coin flip with HH win for A and HT win for B and tie for the rest)