Count Non Leaf Nodes Leetcode Two