Driver code
public static void Main ( String [ ] args ) { Node root = new Node ( 10 ) ; root . left = new Node ( 5 ) ; root . right = new Node ( 100 ) ; root . right . left = new Node ( 50 ) ; root . right . right = new Node ( 150 ) ; root . right . left . left = new Node ( 40 ) ; Console . WriteLine ( isBalanced ( root ) ? " Balanced " : " Not ▁ Balanced " ) ; } }