
    Given a customer's total number of financial transactions, determine the minimum storage block size (which must be a power of 2) needed to accommodate all transactions in the bank's credit scoring system. The storage block size must be large enough to store all transactions while maintaining the system's data processing efficiency.
    

    
def next_power_of_2(n):
    """
    Given a customer's total number of financial transactions, determine the minimum storage block size (which must be a power of 2) needed to accommodate all transactions in the bank's credit scoring system. The storage block size must be large enough to store all transactions while maintaining the system's data processing efficiency.
    

    """
def next_power_of_2(n):
    """
    Given a customer's total number of financial transactions, determine the minimum storage block size (which must be a power of 2) needed to accommodate all transactions in the bank's credit scoring system. The storage block size must be large enough to store all transactions while maintaining the system's data processing efficiency.
    

    """
    if n and (not n & n - 1):
        return n
    count = 0
    while n != 0:
        n >>= 1
        count += 1
    return 1 << count