private static String reverseString(String input)
    {
        char [] inputStrArray = input.toCharArray();
        char temp;
        int min =0;
        int max = inputStrArray.length;
        for (int count =0; count < (max-min)/2;count++)
        {
            temp = inputStrArray[min+count];
            inputStrArray[min+count] = inputStrArray[max-count -1];
            inputStrArray[max-count -1] = temp;
        }
        return new String(inputStrArray);
    }