The function takes a string input and outputs the string with every other character capitalized.
