doing PalindromePartitioning2