swift subset of array match the duplicate elements

join shbcf.ru