Surescripts interview question

Find duplicates in dictionary elements with a reasonable time/space complexity