Inflation is the rate at which prices of goods and service increase in an economy over a period of time.…