Hard
Limit the Calls
Write
limit(n): the decorated function works for the first n calls and returns 'limit reached' afterwards. Decorate echo(x) with the n read from input and call it on each word of the next line.Input
n, then a line of words.
Output
One line per word.
Sample 1
Input
2 a b c
Output
a b limit reached
Sample 2
Input
0 x
Output
limit reached
Output appears here