The rule implemented by the function is to capitalize every other letter of the input word.

