Keppel Seghers Interview Question

Good nodes in binary tree