Zilingo interview question

remove all nodes from a binary tree having single child