HackerRank - Super Reduced String

Reduced indeed!
static String super_reduced_string(String s) {
    for (int i = 0; i < s.length() - 1;) {
        if (s.charAt(i) == s.charAt(i + 1)) {
            s = s.substring(0, i) + s.substring(i + 2, s.length());
            i = 0;
        } else {
            i++;
        }
    }
 
    if (s.isEmpty()) {
        return "Empty String";
    }
 
    return s;
}