Tokopedia Interview Question

Code palindrome string and optimize it with memoization