Driver code
let root = new Node ( ' ' ) ; root . left = new Node ( ' ' ) ; root . right = new Node ( ' ' ) ; root . left . left = new Node ( ' ' ) ; root . left . right = new Node ( ' ' ) ; root . right . left = new Node ( ' ' ) ; root . right . right = new Node ( ' ' ) ; printAllPaths ( root ) ;