Beanfield interview question

what is diffrenece between BGP and OSPF?