Count ways to partition a number into increasing sequences of digits
Given a numeric string S, the task is to find the number of ways to partition a string into substrings consisting of digits in increasing order. Examples: Input: S = "1345"Output: 5Explanation: Possible partitions are as follows: [1345][13, 45], [1, 345][1, 3, 45][1, 3, 4, 5] Input: S = "12"Output: