/**
* 反转字符串
* @param str string字符串
* @return string字符串
*/
public String solve (String str) {
// write code here
int length = str.length();
String reverse = "";
for (int i=0; i<length; i++)
reverse = str.charAt(i) + reverse;
return reverse;
}