Suppose you are given the results of 5 games of rock-paper-scissors. The results are given to you on separate pieces of paper; each piece says either 'A' if the first person won, or 'B' if his opponent won.
Write an algorithm, in English, for determining who won the best out of 5 games (person A or person B).