public int count(int i, int[] a, int e, int[] b, int max) {
        int count = 0;
        if (i + max >= a.length || e + max >= b.length || a[i + max] != b[e + max])
            return count;
        while (i < a.length && e < b.length) {
            if (a[i] != b[e])
                break;
            count++;
            i++;
            e++;
        }
        return count;
    }
Why Did you create this class? what does it do?
src/problems/medium/MaximumLengthOfRepeatedSubArray.java