Amazon interview question

gas station problem and max path sum in binary tree