Inflation is the rise in prices for goods and services that reduces the purchasing power…