How to print n times using recursion

So here we have used recursion The names which is before function will print FIFO & vice versa