Keppel Seghers interview question

Good nodes in binary tree