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.
Constraints
0 <= number of nodes <= 2000
-1000 <= Node.val <= 1000
The input tree is a valid binary tree
Interviewer
Whenever you're ready, walk me through your approach or go straight to the code. The requirements are in the Question tab.