PTC interview question

calculate binary tree maximum height