Palindrome Number

Do without extra space!