Medium
Given the root of a binary tree, imagine standing on the right side. Return the values of the nodes you can see, ordered top to bottom.
root
Input: root = [1,2,3,null,5,null,4] Output: [1,3,4]
Input: root = [1,null,3] Output: [1,3]