Motive Interview Question

- binary tree related - javascript