
    Given a customer's transaction history pattern represented as a binary string where 1 indicates successful transactions and 0 indicates failed transactions, determine how many different patterns would show concerning credit behavior when viewing the history from different time periods through rotations. Each rotation shifts the transaction pattern by one position, and a pattern is concerning if its decimal value is odd when interpreted as a binary number.
    

    
def odd_Equivalent(s, n):
    """
    Given a customer's transaction history pattern represented as a binary string where 1 indicates successful transactions and 0 indicates failed transactions, determine how many different patterns would show concerning credit behavior when viewing the history from different time periods through rotations. Each rotation shifts the transaction pattern by one position, and a pattern is concerning if its decimal value is odd when interpreted as a binary number.
    

    """
def odd_Equivalent(s, n):
    """
    Given a customer's transaction history pattern represented as a binary string where 1 indicates successful transactions and 0 indicates failed transactions, determine how many different patterns would show concerning credit behavior when viewing the history from different time periods through rotations. Each rotation shifts the transaction pattern by one position, and a pattern is concerning if its decimal value is odd when interpreted as a binary number.
    

    """
    count = 0
    for i in range(0, n):
        if s[i] == '1':
            count = count + 1
    return count