Given a special binary tree where each node has either two or zero sub-nodes, and each node's value is the smaller value between its two sub-nodes, find the second minimum value in the tree. If no such value exists, return -1.
Click Run to execute sample tests.