Fanatics interview question

Buy sell stock,mirror tree,is bst,two pointers in string