import bisect


def where(start, end, arr):
    """Find where the start location and end location indexes in an array"""

    astart = bisect.bisect_left(arr, start)
    aend = bisect.bisect_right(arr[start:], end) + start

    return astart, aend