Design an algorithm to encode a list of strings to a single string, and decode that single string back to the original list of strings.
The trick: prefix each string with its length followed by a delimiter. For example:
This way, even if strings contain our delimiter character, we can still correctly decode by reading the exact number of characters specified by the length.
decode(encoded)
['hello', 'world']