Question d’entretien chez Amazon

https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/ Convert BST to greater sum tree