BNP Paribas Interview Question

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