is palindrome

two loop, one to count, one to check