write a function alternatingwords that accepts an array of words as an argument. the function should mutate the input array such that the words alternate between fully uppercase or lowercase. the first word should be uppercase.