Decode String

Medium

📝 Description

Decode a string encoded with k[encoded_string] pattern

Input Format

Encoded string

Output Format

Decoded string

Constraints

1 ≤ s.length ≤ 30

🔍 Sample Input

"3[a]2[bc]"
            

✅ Sample Output

"aaabcbc"
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run