This question was asked for an SDE 2 position.
For example, given the following binary tree:
[2,3,5,4,8,6,-2,null,null,null,null,null,null,null,2] and sum = 7
/ \ / \
4 8 6 -2
Print : [3,4] , [2,5] , [2,5,-2,2]