construct binary tree as shown in above diagram
root = newNode ( 10 ) NEW_LINE root . left = newNode ( 2 ) NEW_LINE root . right = newNode ( 3 ) NEW_LINE root . left . left = newNode ( 7 ) NEW_LINE root . left . right = newNode ( 8 ) NEW_LINE root . right . right = newNode ( 15 ) NEW_LINE root . right . left = newNode ( 12 ) NEW_LINE root . right . right . left = newNode ( 14 ) NEW_LINE printRightView ( root ) NEW_LINE