Exago Interview Question

how to create a binary tree class