A string is an additive number if its digits can form an additive sequence: it must contain at least three numbers where, after the first two, each number equals the sum of the previous two. Numbers may not have leading zeros (except the single digit 0).
Given a string num of digits, return true if it is an additive number.