Thoughtworks interview question

BBST insertion