find palindrome in range and christmas tree programs