Pergunta de entrevista da empresa Google

Given a list of words, develop two functions to serialize and deserialize into a single string. Given a string in the format: 2(abc)4(df), write a function to decompress the string to the following format: abcabcdfdfdfdf