Leetcode Simple Python Program For Palindrome Using Function