Frage im Vorstellungsgespräch bei PlaceIQ

Write a program that returns the second largest number from a binary tree.