Meta Interview Question

Graph question but I forgot how to implement bellman ford