Solution for Minimum Depth of Binary Tree