@@ -0,0 +1,387 @@
+/*%0A* Write a function that takes a string as input and returns the string reversed.%0A* Example:%0A* Given s = %22hello%22, return %22olleh%22.%0A*/%0A%0Apublic class Solution %7B%0A    public String reverseString(String s) %7B%0A        StringBuffer sb = new StringBuffer();%0A%0A        for (int i = s.length() - 1; i %3E= 0; i--) %7B%0A            sb.append(s.charAt(i));%0A        %7D%0A%0A        return sb.toString();%0A    %7D%0A%7D

reverse string