Max Verstappen won the Las Vegas Grand Prix after one of the most exciting races of the season, with Oscar Piastri claiming third after starting 17th.