palindrome program in c# without using string functions