
    Design a fraud detection function that analyzes pairs of encoded transactions from a customer's history to identify potential security threats. The function should count how many pairs of encoded transaction values, when XORed together, result in an even number, as this pattern typically indicates legitimate transaction behavior. The count of these pairs helps establish a baseline for normal transaction patterns in the customer's profile.
    

    
def find_even_pair(A):
    """
    Design a fraud detection function that analyzes pairs of encoded transactions from a customer's history to identify potential security threats. The function should count how many pairs of encoded transaction values, when XORed together, result in an even number, as this pattern typically indicates legitimate transaction behavior. The count of these pairs helps establish a baseline for normal transaction patterns in the customer's profile.
    

    """
def find_even_pair(A):
    """
    Design a fraud detection function that analyzes pairs of encoded transactions from a customer's history to identify potential security threats. The function should count how many pairs of encoded transaction values, when XORed together, result in an even number, as this pattern typically indicates legitimate transaction behavior. The count of these pairs helps establish a baseline for normal transaction patterns in the customer's profile.
    

    """
    count = 0
    for i in range(0, len(A)):
        for j in range(i + 1, len(A)):
            if (A[i] ^ A[j]) % 2 == 0:
                count += 1
    return count