FactSet interview question

Given a matrix calculate the path that yields the maximum value.