The top three New York City mayoral candidates sparred over who has the right sort of experience to lead the city and how they would approach dealing with President Donald Trump.