Question d’entretien chez Amazon

gas station problem and max path sum in binary tree