Additive Number

An additive number is a string of digits where, after splitting it into at least three numbers, every number after the first two equals the sum of the previous two, and the whole string is consumed. Given a string num, return true if it can be split this way, otherwise false.

A valid number is either "0" or a decimal number with no leading zero. For example, "0" and "12" are valid pieces, while "01" is not.

Examples
Input: "112358"
Output: true
Hints

Additive Number

An additive number is a string of digits where, after splitting it into at least three numbers, every number after the first two equals the sum of the previous two, and the whole string is consumed. Given a string `num`, return `true` if it can be split this way, otherwise `false`.