Bankruptcy is a legal status of a person or entity which means that the entity cannot repay the debts it…