Solve the 'Minimum Depth of Binary Tree' question