Max sum in a path