Palindrome Partitioning II

Given a string s, partition s such that every substring of the partition is a palindrome.

Return the minimum cuts needed for a palindrome partitioning of s.

Examples
Input: "aab"
Output: 1
Hints

Palindrome Partitioning II

Given a string `s`, partition `s` such that every substring of the partition is a palindrome.