Pergunta de entrevista da empresa Meta

// Problem Statement Write a function that, given a binary tree of integers, returns the sums of all the root-to-leaf paths. // Example // Input: // 2 // / \ // 3 5 // / \ // 1 5 // Output: // [6, 10, 7]