Create a function that takes an array of any length. Modify each element (capitalize, reverse, hyphenate).
editWords(["new york city"]) ➞ ["YTIC KR-OY WEN"]
editWords(["null", "undefined"]) ➞ ["LL-UN", "DENIF-EDNU"]
editWords(["hello", "", "world"]) ➞ ["OLL-EH", "-", "DLR-OW"]
editWords([""]) ➞ ["-"]
Input array values can be any type.