Java solution of 572 - Subtree of Another Tree fails when the following is presented as input: [1,1] [1] (which is a Leetcode test case that it fails, making the solution incorrect)