BlackRock interview question

Valid palindrome leetcode easy 2 types of implementation