give root binary tree p q write function check nottwo binary tree consider structurally identical node value Example 1Input p 123 q 123output trueExample 2input p 12 q 1null2output falseexample 3input p 121 q 112output false ConstraintsThe number nod tree range 0 100104 Nodeval 104