Question d’entretien chez LinkedIn

Write a function to calculate the maximum depth of a binary tree.