Palindrome Using Stream Elements