Domanda di colloquio di Amazon

gas station problem and max path sum in binary tree