Meta Interview Question

implement functions of constructing binary tree