Sponsored
Use these hints if you're stuck. Try solving on your own first.
Try to come up with a greedy approach.
From left to right, extend every substring in the partition as much as possible.
Solve with full IDE support and test cases