Given an encoded string, return its decoded version. The encoding rule follows the pattern: k[encoded string]k[encoded~string]k[encoded string], where the encoded stringencoded~stringencoded string is repeated exactly kkk times.
Note: The kkk is guaranteed to be a positive integer.
Assume that the input ...