Driver code
public static void Main ( string [ ] args ) { Node root = newNode ( 1 ) ; root . left = newNode ( 2 ) ; root . right = newNode ( 3 ) ; root . right . left = newNode ( 4 ) ; root . right . right = newNode ( 5 ) ; Console . Write ( " Level ▁ order ▁ traversal ▁ " + " of ▁ given ▁ tree STRNEWLINE " ) ; printLevelOrder ( root ) ; root = flipBinaryTree ( root ) ; Console . Write ( " STRNEWLINE Level ▁ order ▁ traversal ▁ " + " of ▁ the ▁ flipped ▁ tree STRNEWLINE " ) ; printLevelOrder ( root ) ; } }