Google interview question

Given a binary tree, write a function to determine the minimum depth from the root to the nearest leaf node.