note that given that it is a binary search tree,
root is fixed to 4 and root immediate right child is fixed to 8, therefore
total elements less than 4, should be left side of root ==> there are 3 elements ( 1, 2, 3) ===> 5 tree structures we can get
total elements grater than 8, should be right side of node 8 ==> there are 4 elements ( 9,10,11,12 ) ===> 14 tree structures we can get
therefore total elements grater than 4 and less than 8, should be left side of node 8 ==> there are 3 elements ( 5,6,7 ) ===> 5 tree structures we can get.
For required a complete Binary Search Tree structure, we have to these three process ===> 5*5*14 = 350 possible structures possible