I\'m trying to solve the following problem:
A string containing only lower-case letters can be encoded into NUM[encoded string] format. For example,
NUM[encoded string]