The national debt refers to the total amount of money a country owes to its creditors. It accumulates when the…