Frage im Vorstellungsgespräch bei Google

Coding Question in interview: calculate and return subtree with given sum in binary tree.