Encode and Decode Strings

You need two matching routines:

  • encode: turn a list of strings into one string
  • decode: rebuild the original list from that encoded text

The transformation must be reversible, even when the input strings are empty or contain punctuation, digits, or separator characters.

Examples
Input: [["lint","code","love","you"]]
Output: ["lint"]
Hints

Encode and Decode Strings

You need two matching routines: