Given an array of words in the singular form, return a set of those words in the plural form if they appear more than once in the array.
pluralize(["cow", "pig", "cow", "cow"]) ➞ [ "cows", "pig" ]
pluralize(["table", "table", "table"]) ➞ [ "tables" ]
pluralize(["chair", "pencil", "arm"]) ➞ [ "chair", "pencil", "arm" ]