Envestnet Interview Question

Implement binary tree datastructure using Python