
    In a credit card fraud detection system, develop a function that determines the highest spending tier threshold (where tiers are defined as powers of 2) that is less than or equal to a given transaction amount. For example, a $300 transaction would fall into the $256 tier, while a $600 transaction would fall into the $512 tier.
    

    
def highest_Power_of_2(n):
    """
    In a credit card fraud detection system, develop a function that determines the highest spending tier threshold (where tiers are defined as powers of 2) that is less than or equal to a given transaction amount. For example, a $300 transaction would fall into the $256 tier, while a $600 transaction would fall into the $512 tier.
    

    """
def highest_Power_of_2(n):
    """
    In a credit card fraud detection system, develop a function that determines the highest spending tier threshold (where tiers are defined as powers of 2) that is less than or equal to a given transaction amount. For example, a $300 transaction would fall into the $256 tier, while a $600 transaction would fall into the $512 tier.
    

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