Google interview question

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