Deletes the last duplicate/second to last Duplicate of a set of integers