
    Given a patient's medication list that could generate n possible drug interaction pairs, determine the largest batch size (as a power of 2) that the drug interaction analysis system can process without exceeding the total number of potential interactions. This batch size will ensure optimal processing of pair-wise drug interaction checks while maintaining system efficiency.
    

    
def highest_Power_of_2(n):
    """
    Given a patient's medication list that could generate n possible drug interaction pairs, determine the largest batch size (as a power of 2) that the drug interaction analysis system can process without exceeding the total number of potential interactions. This batch size will ensure optimal processing of pair-wise drug interaction checks while maintaining system efficiency.
    

    """
def highest_Power_of_2(n):
    """
    Given a patient's medication list that could generate n possible drug interaction pairs, determine the largest batch size (as a power of 2) that the drug interaction analysis system can process without exceeding the total number of potential interactions. This batch size will ensure optimal processing of pair-wise drug interaction checks while maintaining system efficiency.
    

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