import java.util.*;

public class Reverse {
    public String reverseString(String iniString) {
        // write code here
        char c;
        int len = iniString.length();
        char[] str = iniString.toCharArray();
        System.out.println(len);

         for (int i=0;i<len/2;i++){
             System.out.println(i);
             c = str[len-i-1];
             str[len-i-1] = str[i];
             str[i]=c;
         }

        return String.valueOf(str);
    }
}