private static int getInteger(String input)
    {
        int result =0;
        boolean isNegative=  false;
        int i=0;
        char[] inputStrArray = input.toCharArray();
        
        if(inputStrArray[0]=='-')
        {
            isNegative = true;
        }
        for(;i<inputStrArray.length;i++)
        {
            
        }
        return result;
    }