Fanatics Interview Question

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