Frage im Vorstellungsgespräch bei J.P. Morgan

How to implement a depth first search for a binary tree