LeetCode 1332. Remove Palindromic Subsequences | Python

Published --