Iterate a list and detect duplicates using a Set.
Type it from memory — say each line out loud as you write it. Then check.