@@ -0,0 +1,800 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner sc=new Scanner(System.in);%0A        String str=sc.next();%0A        char%5B%5D l= str.toCharArray();%0A        //Arrays.sort(l);%0A        Stack%3CCharacter%3E st = new Stack%3CCharacter%3E();%0A        for(int i=0;i%3Cl.length;i++)%7B%0A            if(st.size()==0) st.push(l%5Bi%5D);%0A            else%7B%0A                if(st.peek()==l%5Bi%5D) st.pop();%0A                else st.push(l%5Bi%5D);%0A            %7D%0A        %7D%0A        if(st.size()==0) System.out.println(%22Empty String%22);%0A        else%7B%0A            String s =%22%22;%0A            while(st.size()!=0)%7B%0A                s=st.pop()+s;%0A            %7D%0A            System.out.println(s);%0A        %7D%0A    %7D%0A%7D

add ReducedString.java