
    Given a client's total investment amount in dollars, determine the largest standardized investment block size (which must be a power of 2) that the bank can offer while staying within the client's budget. The bank's investment structure requires all block sizes to be powers of 2 (such as $2048, $1024, $512), and the goal is to identify the maximum such block size that doesn't exceed the client's total investment amount.
    

    
def highest_Power_of_2(n):
    """
    Given a client's total investment amount in dollars, determine the largest standardized investment block size (which must be a power of 2) that the bank can offer while staying within the client's budget. The bank's investment structure requires all block sizes to be powers of 2 (such as $2048, $1024, $512), and the goal is to identify the maximum such block size that doesn't exceed the client's total investment amount.
    

    """
def highest_Power_of_2(n):
    """
    Given a client's total investment amount in dollars, determine the largest standardized investment block size (which must be a power of 2) that the bank can offer while staying within the client's budget. The bank's investment structure requires all block sizes to be powers of 2 (such as $2048, $1024, $512), and the goal is to identify the maximum such block size that doesn't exceed the client's total investment amount.
    

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