public static void main(String[] args) {
        PatchingArray patchingArray=new PatchingArray();
        int[]nums={1,3};
        int n=6;
        System.out.println(patchingArray.minPatches(nums,n));
    }