int compareto(int[] a, int[] b) {
        if (a.length > b.length)
            return 1;
        if (b.length > a.length)
            return -1;

        for (int i = 0; i < a.length; i++) {
            if (a[i] > b[i])
                return 1;
            if (b[i] > a[i])
                return -1;
        }
        return 0;
    }