Write a program that reads a number and a sequence of or more words, and prints the last words in reverse order.
Input begins with a natural number , followed by, at least, words.
Print the last words of the original sequence, in reverse order, and one per line.
For the sake of practice, use recursion (not arrays).
Input
2 tom anne arnold
Output
arnold anne
Input
4 dolphins octopuses squid sharks whales piranhas killerwhales fish
Output
fish killerwhales piranhas whales