I tried to solve this problem by taking help from GFG . Here first the tree is converted into inorder so it is a sorted type and doing a search of the sum.
ide-> https://ide.codingblocks.com/s/256443
ques->https://www.interviewbit.com/problems/2sum-binary-tree/
Can u please point out the error