Adrosonic interview question

floyd warshall algorithm