HCLTech interview question

How does OSPF works?