Given the root of a binary tree, return the values of the nodes at each level starting from the right, in the order they occur at that level. The right side view of a binary tree is a list of elements that would be observed by standing at the rightmost position and looking at the leftmost elements at each level.
Note that this problem does not require handling nodes with null or undefined values.
Input: {"input_data":[1,2,3]} Output: [1,2,3]
Solve problems, verify your skills, and earn XP.