Create Find duplicates in O(n) time