Pergunta de entrevista da empresa Global Payments

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