Pregunta de entrevista de Pegasystems

How to maintain a binary search tree while inserting elements?