Global Payments Interview Question

What is a Firewall? and what is the difference Stateful and Stateless?