palindromePartitioning ac, one time