It was a thrilling end to qualifying as Lewis Hamilton and Max Verstappen battled it out for pole position at the United States Grand Prix.