Number of Ways to Reorder Array to Get Same BST | dStruct