// Path: src/main/java/com/hackerrank/SuperReducedString.java
// static String superReducedString(String input) {
//     Pattern pattern = Pattern.compile("([a-z])\\1");
//     Matcher matcher = pattern.matcher(input);
//     while (matcher.find()) {
//         input = matcher.replaceAll("");
//         matcher.reset(input);
//     }
//     return input.equals("") ? "Empty String" : input;
// }


import org.junit.Test;
import static com.hackerrank.SuperReducedString.superReducedString;
import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat;
package com.hackerrank;



public class SuperReducedStringTest {

    @Test
    public void simpleTestCase() {
// Path: src/main/java/com/hackerrank/SuperReducedString.java
// static String superReducedString(String input) {
//     Pattern pattern = Pattern.compile("([a-z])\\1");
//     Matcher matcher = pattern.matcher(input);
//     while (matcher.find()) {
//         input = matcher.replaceAll("");
//         matcher.reset(input);
//     }
//     return input.equals("") ? "Empty String" : input;
// }


// Path: src/test/java/com/hackerrank/SuperReducedStringTest.java
import org.junit.Test;
import static com.hackerrank.SuperReducedString.superReducedString;
import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat;

package com.hackerrank;



public class SuperReducedStringTest {

    @Test
    public void simpleTestCase() {
        assertThat(superReducedString("aaabccddd")).isEqualTo("abd");