
    Write a function that determines the largest batch size (as a power of 2) for processing suspicious credit card transactions, given the total number of flagged transactions in the monitoring window, to optimize the fraud detection system's analysis capacity without exceeding its processing threshold. The batch size must be the highest power of 2 that does not exceed the total number of suspicious transactions.
    

    
def highest_Power_of_2(n):
    """
    Write a function that determines the largest batch size (as a power of 2) for processing suspicious credit card transactions, given the total number of flagged transactions in the monitoring window, to optimize the fraud detection system's analysis capacity without exceeding its processing threshold. The batch size must be the highest power of 2 that does not exceed the total number of suspicious transactions.
    

    """
def highest_Power_of_2(n):
    """
    Write a function that determines the largest batch size (as a power of 2) for processing suspicious credit card transactions, given the total number of flagged transactions in the monitoring window, to optimize the fraud detection system's analysis capacity without exceeding its processing threshold. The batch size must be the highest power of 2 that does not exceed the total number of suspicious transactions.
    

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