The U.S. consumer price index (CPI) jumped 6.2% in October, leading to the biggest inflation surge in more than 30 years.