find duplicate elements in array using brute force

visit shbcf.ru