Solve a very simple leetcode problem for alphanumeric palindrome checking.