Design an algorithm to encode a list of strings into a single string and decode it back. (Handle arbitrary contents including empty).
N/A (design).
N/A.
Example 1:
Input:
strs = ["Hello","World"]
Output:
5#Hello5#World
Example 2:
Input:
strs = [""]
Output:
0#
Example 3:
Input:
strs = ["a","b","c"]
Output:
1#a1#b1#c