Surescripts Interview Question

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