class CompressString {

  public String compressRecursive(String src) {
    validateInput(src);

    if (src.length() <= 1) {
      return src;
    }

    return compressRecursiveInner(src, new StringBuilder(), 1, src.charAt(0), 1);
  }

}