Question d’entretien chez Google

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