Newton School interview question

Maximum path sum Running stream