Question: 
Write a python function to find the sum of repeated elements in a given array.


Model's Code:
def find_Sum(arr, target):
    count = {}
    for num in arr:
        if num in count:
            count[num] += 1
        else:
            count[num] = 1
    return sum(num for num, cnt in count.items() if cnt > 1 and num <= target)



Sample Correct Code:
def find_Sum(arr,n): 
    return sum([x for x in arr if arr.count(x) > 1])


Asserts:
assert find_Sum([1,2,3,1,1,4,5,6],8) == 3
assert find_Sum([1,2,3,1,1],5) == 3
assert find_Sum([1,1,2],3) == 2


Tests:
Test 1 of 3: FAIL: AssertionError()

Test 42 of 974: 32/42 (76.19047619047619%): failed