
    Design a function for the bank's fraud detection system that determines the largest batch size (as a power of 2) that can be used to analyze a given set of consecutive transactions without exceeding the total number of transactions in the current time window. The batch size must be a power of 2 to maintain compatibility with the bank's parallel processing infrastructure.
    

    
def highest_Power_of_2(n):
    """
    Design a function for the bank's fraud detection system that determines the largest batch size (as a power of 2) that can be used to analyze a given set of consecutive transactions without exceeding the total number of transactions in the current time window. The batch size must be a power of 2 to maintain compatibility with the bank's parallel processing infrastructure.
    

    """
def highest_Power_of_2(n):
    """
    Design a function for the bank's fraud detection system that determines the largest batch size (as a power of 2) that can be used to analyze a given set of consecutive transactions without exceeding the total number of transactions in the current time window. The batch size must be a power of 2 to maintain compatibility with the bank's parallel processing infrastructure.
    

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