You are given the root of a binary tree.
Your task is to return the values of the nodes visible when standing on the right side of the tree, ordered from top to bottom.
Return a list of the values of the visible nodes.
[1, 2, 3]
From the right side, you can see nodes with values 1 (level 0), 2 (level 1), and 3 (level 2).
[1, 2, 4, 5]
From the right side, you can see nodes with values 1 (level 0), 2 (level 1), 4 (level 2), and 5 (level 3).
None
[]
An empty tree has no nodes, so the right side view is empty.
[1, 2, 3]