Pregunta de entrevista de Siemens Digital Industries Software

How to represent a tree? How to implement breadth-first and depth-first search?