
Symboli Rudof is trying to find new jokes to tell Air Groove, and she's asking you to inspire her! In order to do that, she's given you a list of sentences.
Your mission is to write a function called "pun" that takes in a list of string and a list of queries and print out the words at the specified index of each sentences to see if it inspires her.
Seeing you so excited to help her, she's also given you a piece of code so you can focus on your main task:
The function will takes in 2 parameters:
a >= 0, b >= 0
For each tuple (a, b), print out the word at index b from sentence a to the last sentence of the list.
If the number of word in the current sentence is less than or equal to b, print out the last word of the sentence.
Print out an empty line if a is larger than the number of sentences.