Reversal function

Reversal function using recursion