Donald Trump and Hillary Clinton traded insults in what may have been the nastiest debate in history.