
    Design a fraud detection function that analyzes a sequence of transaction security flags and determines how many different suspicious patterns emerge when shifting the sequence by a specified number of positions. Given a binary string of security check results and a number of time-shift operations, count how many unique shifted patterns would trigger an alert (represented by an odd decimal value) in the fraud detection system.
    

    
def odd_Equivalent(s, n):
    """
    Design a fraud detection function that analyzes a sequence of transaction security flags and determines how many different suspicious patterns emerge when shifting the sequence by a specified number of positions. Given a binary string of security check results and a number of time-shift operations, count how many unique shifted patterns would trigger an alert (represented by an odd decimal value) in the fraud detection system.
    

    """
def odd_Equivalent(s, n):
    """
    Design a fraud detection function that analyzes a sequence of transaction security flags and determines how many different suspicious patterns emerge when shifting the sequence by a specified number of positions. Given a binary string of security check results and a number of time-shift operations, count how many unique shifted patterns would trigger an alert (represented by an odd decimal value) in the fraud detection system.
    

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