You are given a string s consisting of digits.
An index i (where s.length) is considered good if the substring of s ending at index i is identical to the decimal string representation of i.
Return an array containing all good indices sorted in ascending order.
Constraints:
s.length
s consists only of digits from $0$ to $9$.
You are given a string s consisting of digits.
An index i (where s.length) is considered good if the substring of s ending at index i is identical to the decimal string representation of i.
Return an array containing all good indices sorted in ascending order.
Constraints:
s.length
s consists only of digits from $0$ to $9$.