Two nodes of a BST are swapped by mistake. Recover the tree without changing its structure.
Initialize first, second, prev to null. Start in-order traversal.
traversing
1
3
2