'Encodes a list of strings to a single string.
:type strs: List[str]
:rtype: str'

def encode(self, strs):

    encoded_str = ''
    for s in strs:
        encoded_str += (('%0*x' % (8, len(s))) + s)
    return encoded_str
