Unravel Data Interview Question

java, python - Palindrome etc