private static void reverseCharArray(char [] inputStrArray, int min, int max)
    {
        char temp;
        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;
        }
    }