Solutions

Option 1: 20, 18, 5, 8, 13, 9, 10, 12
It is a valid traversal.
Option 2: 30, 28, 15, 10, 13,12, 11, 9
Since 9 is less than 10 and to the right of it. Therefore it is not a valid traversal sequence of the binary search tree
Option 3: 10 30 40 33 39 37 38, 34
Since 34 is less than 37 and to the right of it. Therefore it is not a valid traversal sequence of the binary search tree
Option 4: 40, 50, 60, 55, 58, 56, 57,59
Since 59 is greater than 58 and to the left of it. Therefore it is not a valid traversal sequence of the binary search tree