
    Given the maximum number of posts that can be displayed in a user's social media feed, determine the largest power of 2 that can be used to display posts while maintaining optimal server load distribution. The feed size must be adjusted downward to the nearest power of 2 to ensure efficient content delivery and balanced system performance.
    

    
def highest_Power_of_2(n):
    """
    Given the maximum number of posts that can be displayed in a user's social media feed, determine the largest power of 2 that can be used to display posts while maintaining optimal server load distribution. The feed size must be adjusted downward to the nearest power of 2 to ensure efficient content delivery and balanced system performance.
    

    """
def highest_Power_of_2(n):
    """
    Given the maximum number of posts that can be displayed in a user's social media feed, determine the largest power of 2 that can be used to display posts while maintaining optimal server load distribution. The feed size must be adjusted downward to the nearest power of 2 to ensure efficient content delivery and balanced system performance.
    

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