public void generateArray(List<String> result, int[] A, int nowIndex, int valueOnNowIndex) {
        if (valueOnNowIndex == 0) {
            result.add(generateString(A, nowIndex));
        } else {
            A[nowIndex] = valueOnNowIndex;
            for(int i=valueOnNowIndex; i>=0; i--){
                if (i<=nowIndex)
                    generateArray(result, A, nowIndex-1, i);
            }

        }
    }