public String countAndSay(int n) {
        // Start typing your Java solution below
        // DO NOT write main() function

        if (n == 0) {
            return new String("");
        }

        String result = new String("1");
        if (n == 1) {
            return result;
        } else {
            while (n > 1) {
                result = read(result);
                n--;
            }
            return result;
        }
    }