Partition String Into Minimum Beautiful Substrings

A string is "beautiful" if it doesn't contain leading zeros unless it's "0". Partition the string into the minimum number of beautiful substrings.

Examples
Input: "1011"
Output: 2
Hints

Partition String Into Minimum Beautiful Substrings

A string is "beautiful" if it doesn't contain leading zeros unless it's "0". Partition the string into the minimum number of beautiful substrings.