Structurally Identical trees

Testcase 2 is not passing. What is the mistake?

For structurally identical condition, you just need to check if they have the same structure and not compare the corresponding values in each node.