You will be given a string that is made up of some repeated pattern of characters. However, one of the characters in the string will be missing and replaced by an underscore. Write a function that returns the missing character.
completePattern("ABCABCA_CAB") ➞ "B"
completePattern("_ABAABAABA") ➞ "A"
completePattern("X+X*X+X*X+X_") ➞ "*"