give string s partition s substre partition palindromereturn minimum cut need palindrome partition s Example 1input s aaboutput 1explanation the palindrome partition aab produce 1 cutexample 2input s aoutput 0example 3input s abOutput 1 Constraints1 slength 2000s consists lowercase english letter