Duplicates in FlowScript table

I want to find the duplicates. I actually figured it out. This link helped;

I will post the code when I have time.