def min_rw_index(prices, start, end):
    """
        Searches min price index inside window [start,end]

    :param prices: in list format
    :param start: window start index
    :param end: window end index
    :return:
    """
    matching_index = start
    for i in range(start, end + 1):
        if prices[matching_index] > prices[i]:
            matching_index = i
    return matching_index