Meta interview question

Graph question but I forgot how to implement bellman ford