Surescripts interview question

Find duplicates within dictionary elements