private String toFixedLength(int len) {
        StringBuffer buff = new StringBuffer();
        for (int i = 0; i < 4; i++) {
            char b1 = (char) len;
            buff.append(b1);
            len = len >> 8;
        }
        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