Hitachi Solutions interview question

What is firewall? explain how it works