#TODO: docstring

    :param arr1: #TODO: docstring
    :param arr2: #TODO: docstring
    :param limitsArr1: #TODO: docstring
    :param limitsArr2: #TODO: docstring

    :returns: #TODO: docstring

def returnArrayFilters(arr1, arr2, limitsArr1, limitsArr2):
    """#TODO: docstring

    :param arr1: #TODO: docstring
    :param arr2: #TODO: docstring
    :param limitsArr1: #TODO: docstring
    :param limitsArr2: #TODO: docstring

    :returns: #TODO: docstring
    """
    posL = bisect.bisect_left(arr1, limitsArr1[0])
    posR = bisect.bisect_right(arr1, limitsArr1[1])
    matchMask = ((arr2[posL:posR] <= limitsArr2[1]) &
                 (arr2[posL:posR] >= limitsArr2[0])
                 )
    return posL, posR, matchMask