python version of palindrome

I’ll leave it to someone else to make it in java.
I just used this to figure the output from the sample input.
Problem Descriptions

Easy, medium, and hard with sample input and output