def isEqual(arr1, arr2):
    """Check if two arrays are equal"""
    l1 = len(arr1)
    l2 = len(arr2)
    if l1 != l2:
        return False
    for i in range(0, max(len(arr1), len(arr2))):
        if arr1[i] != arr2[i]:
            return False
    return True