Tokopedia interview question

Code palindrome string and optimize is with memoization