I want to find duplicate elements in a dynamic array. In most cases it works, but how can it work for this case. I\'m finding duplicate elements in a given array. But there is o