
    Given the total number of passengers waiting at a bus stop, determine the largest bus capacity (which must be a power of 2) that can be fully utilized without exceeding the passenger count to maintain optimal social distancing protocols. For example, if there are 30 passengers, the function should return 16 as the optimal bus capacity, as it's the largest power of 2 that doesn't exceed the number of waiting passengers.
    

    
def highest_Power_of_2(n):
    """
    Given the total number of passengers waiting at a bus stop, determine the largest bus capacity (which must be a power of 2) that can be fully utilized without exceeding the passenger count to maintain optimal social distancing protocols. For example, if there are 30 passengers, the function should return 16 as the optimal bus capacity, as it's the largest power of 2 that doesn't exceed the number of waiting passengers.
    

    """
def highest_Power_of_2(n):
    """
    Given the total number of passengers waiting at a bus stop, determine the largest bus capacity (which must be a power of 2) that can be fully utilized without exceeding the passenger count to maintain optimal social distancing protocols. For example, if there are 30 passengers, the function should return 16 as the optimal bus capacity, as it's the largest power of 2 that doesn't exceed the number of waiting passengers.
    

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