TikTok Interview Question

detect palindrome leetcode question in python