Return type incorrect


Question expects a list of treenodes while the function has a single treenode.
Considering this is a checkpoint problem, is it the intent that nobody should pass the checkpoint and move to next topic?


Have you got any solution to it? I am still stuck here. Yes, I think they are intentionally doing so.