Yelp interview question

Find maximum(minimum) cost path in matrix.