Print Single Child Nodes Leetcode