
    Design a function for the social network's event recommendation system that determines the largest batch size (as a power of 2) that can be used to process available event recommendations without exceeding the total number of events. This batch size will be used to optimize the distribution of event recommendations in users' social feeds while maintaining efficient processing capabilities.
    

    
def highest_Power_of_2(n):
    """
    Design a function for the social network's event recommendation system that determines the largest batch size (as a power of 2) that can be used to process available event recommendations without exceeding the total number of events. This batch size will be used to optimize the distribution of event recommendations in users' social feeds while maintaining efficient processing capabilities.
    

    """
def highest_Power_of_2(n):
    """
    Design a function for the social network's event recommendation system that determines the largest batch size (as a power of 2) that can be used to process available event recommendations without exceeding the total number of events. This batch size will be used to optimize the distribution of event recommendations in users' social feeds while maintaining efficient processing capabilities.
    

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