add solution for array to bst problem