You are given a 0-indexed string num of length n consisting of digits.
Return true if for every index i in the range 0 <= i < n, the digit i occurs num[i] times in num, otherwise return false.
n == num.length1 <= n <= 10num consists only of digitsnum = "1210"truenum = "030"false