Design an algorithm to encode a list of strings to a string. The encoded string is then sent over the network and is decoded back to the original list of strings.
Sample Input:
["Hello", "World"]
Sample Output:
["Hello", "World"]
Hints
Hint 1
Use length prefix for each string
Hint 2
Format: length#string
Hint 3
Parse by reading length, then reading that many characters