Approach hintTry it first, then revealHide
From the current start index, try every end index whose substring is a palindrome, recurse on the rest, and record the partition when the start reaches the end. A precomputed palindrome table avoids repeated checks.