I need to know how to find duplicate values in integer array by loop method in swift? I tried to ->
func findDuplicates (array: [Int]) { for i in a