
    Given the total number of available appointment slots in a medical clinic, determine the largest block size (which must be a power of 2) that can be used to evenly divide the scheduling day without exceeding the total slots. This block size will be used to create efficient patient scheduling segments while maintaining optimal patient flow and minimizing wait times.
    

    
def highest_Power_of_2(n):
    """
    Given the total number of available appointment slots in a medical clinic, determine the largest block size (which must be a power of 2) that can be used to evenly divide the scheduling day without exceeding the total slots. This block size will be used to create efficient patient scheduling segments while maintaining optimal patient flow and minimizing wait times.
    

    """
def highest_Power_of_2(n):
    """
    Given the total number of available appointment slots in a medical clinic, determine the largest block size (which must be a power of 2) that can be used to evenly divide the scheduling day without exceeding the total slots. This block size will be used to create efficient patient scheduling segments while maintaining optimal patient flow and minimizing wait times.
    

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