
    Given the current passenger count on a bus route, determine the highest binary capacity threshold (power of 2) that can be accommodated without exceeding the actual passenger count, to optimize bus scheduling. This capacity threshold will be used by the transit authority's scheduling algorithm to allocate buses efficiently while maintaining optimal occupancy levels.
    

    
def highest_Power_of_2(n):
    """
    Given the current passenger count on a bus route, determine the highest binary capacity threshold (power of 2) that can be accommodated without exceeding the actual passenger count, to optimize bus scheduling. This capacity threshold will be used by the transit authority's scheduling algorithm to allocate buses efficiently while maintaining optimal occupancy levels.
    

    """
def highest_Power_of_2(n):
    """
    Given the current passenger count on a bus route, determine the highest binary capacity threshold (power of 2) that can be accommodated without exceeding the actual passenger count, to optimize bus scheduling. This capacity threshold will be used by the transit authority's scheduling algorithm to allocate buses efficiently while maintaining optimal occupancy levels.
    

    """
    res = 0
    for i in range(n, 0, -1):
        if i & i - 1 == 0:
            res = i
            break
    return res