Right view of given binary tree

please help in what is wrong in my approach.

@Basant-Kumar-1342173592623612
hello Basant,
ur logic to print right view is correct.

the issue is with ur buildtree function . u need to build tree from given level order.
image

image