Donald Trump was asked if the US would carry out a possible attack on Iran.