import java.util.*;


public class Solution {
    /**
     * 反转字符串
     * @param str string字符串 
     * @return string字符串
     */
    public String solve (String str) {
        // write code here
        StringBuffer s1=new StringBuffer(str);
        String s2 = s1.reverse().toString();
        return s2;
    }
}