public String encode(List<String> strs) {
        StringBuffer buff = new StringBuffer();
        for (String str : strs) {
            String size = toFixedLength(str.length());
            buff.append(size);
            buff.append(str);
        }
        return buff.toString();
    }
Date 04/06/2016
@author Tushar Roy

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.

Reference
https://leetcode.com/problems/encode-and-decode-strings/
src/com/interview/string/StringEncoderDecoder.java