
    Given a student's total number of performance records, determine the largest group size (which must be a power of 2) that can be used to evenly analyze the data without exceeding the total number of records. This grouping strategy will ensure balanced statistical comparison across different performance metrics while maximizing the sample size for each analysis period.
    

    
def highest_Power_of_2(n):
    """
    Given a student's total number of performance records, determine the largest group size (which must be a power of 2) that can be used to evenly analyze the data without exceeding the total number of records. This grouping strategy will ensure balanced statistical comparison across different performance metrics while maximizing the sample size for each analysis period.
    

    """
def highest_Power_of_2(n):
    """
    Given a student's total number of performance records, determine the largest group size (which must be a power of 2) that can be used to evenly analyze the data without exceeding the total number of records. This grouping strategy will ensure balanced statistical comparison across different performance metrics while maximizing the sample size for each analysis period.
    

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