Given an encoded string where k[encoded] means the bracketed substring repeats k times (nesting allowed), return the fully decoded string. The input is JSON {s}.
Input: JSON {s}.
Output: String — the decoded string.
Input: {"s":"3[a]2[bc]"}
Output: aaabcbc
Explanation: a x3 then bc x2.Input: {"s":"3[a2[c]]"}
Output: accaccacc
Explanation: Nested repetition.Input: {"s":"abc"}
Output: abc
Explanation: No encoding.1<=|s|<=1000valid encoding