FactSet Interview Question

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