BNP Paribas interview question

What is a credit default swaps? How does it work?