Driver code
public static void Main ( String [ ] args ) { Node root = new Node ( ' A ' ) ; root . left = new Node ( ' B ' ) ; root . right = new Node ( ' C ' ) ; root . left . left = new Node ( ' D ' ) ; root . left . right = new Node ( ' E ' ) ; root . right . right = new Node ( ' B ' ) ; root . right . right . right = new Node ( ' E ' ) ; root . right . right . left = new Node ( ' D ' ) ; String str = dupSub ( root ) ; if ( str . Equals ( " " ) ) Console . Write ( " ▁ Yes ▁ " ) ; else Console . Write ( " ▁ No ▁ " ) ; } }