revise Surrounded Regions and palindrome_partitioning
reduce Distinct Subsequences space cost