public static boolean isSubset(int[] arr1, int[] arr2){
        int m = arr1.length;
        int n = arr2.length;

        if(m < n) return false;

        Arrays.sort(arr1);
        Arrays.sort(arr2);

        int i = 0, j = 0;
        while(i < m && j < n){
            if(arr1[i] == arr2[j]){
                i++;
                j++;
            }else if(arr1[i] < arr2[j]){
                i++;
            }else{
                return false;
            }
        }
        return j == n;
    }