String reversal program using temporary array