@@ -0,0 +1,199 @@
+public String sameEnds(String string) %7B%0A  String end = %22%22;%0A  for (int i=string.length()/2; i%3E=0; i--) %7B%0A    end = string.substring(0, i);%0A    if (string.endsWith(end)) return end;%0A  %7D%0A  return %22%22;%0A%7D%0A

Create sameEnds.java