Apple Interview Question

Palindrome leetcode question standard solution.