Create valid_palindrome1.py

using while loop to check the palindrome