Charles Leclerc converted second on the grid into second at the chequered flag, at the Mexico City Grand Prix.