K Palindrome Problem