
Given the root of a binary tree, return the node values grouped by level from top to bottom and left to right. If the tree is empty, return an empty list.
root = [3,9,20,null,null,15,7]Output[[3],[9,20],[15,7]]WhyEach level is collected separately.root = [1]Output[[1]]WhyA single node forms one level.0 <= number of nodes <= 2000-1000 <= Node.val <= 1000The input tree is a valid binary tree