Pregunta de entrevista de Uber

For the technical interview, I was asked to implement basic binary tree algorithms – balancing, searching, detecting cycles, etc.