Decode String

Try to solve the Decode String problem.

Statement

Given an encoded string, return its decoded version. The encoding rule follows the pattern: k[encoded stri ...