Fujitsu interview question

how OSPF operates, BGP best path selection