Inflation is the general increase in prices of goods and services in a country. This…