Bankruptcy is the state where an individual or a company is relieved of their pending debts by the order of…