added solution for "Find duplicates in array"