reversing string (reverse a number exircice)