Given an encoded string where k[encoded] means the bracketed content is repeated k times (nestable), return the decoded string.
Input: one line, the encoded string. Output: the decoded string.
3[a]2[bc]
aaabcbc
3[a2[c]]
accaccacc
2[abc]3[cd]ef
abcabccdcdcdef
Run your code against the sample tests, or Submit to run the full suite.