Time Complexity of RightView

how to analyse the time complexity of rightView of a tree
and pls explain it

helllo @dare_devil_007
to print right view we r just traversing the whole tree so if there r N nodes in the tree .
time complexity will be O(N)