Before computers, Merriam Webster kept a backward index of every word in the English language. Each word sat on its own card, spelled backwards, and the cards were filed in alphabetical order. The index answered questions such as "how many words end in TION?".
You are given a list of words written in capital letters only. Build a backward index: reverse every word, then print the reversed words in alphabetical order.