Given an encoded string in the format `k[encoded_string]`, return the decoded string repeated k times.