Exago interview question

how to create a binary tree class