First version of the Minimum depth of binary tree problem.