What is a Decentralized Exchange (DEX) and How does it Work?

What is a Decentralized Exchange (DEX) and How does it Work?