valid binary search tree
reverse nodes in k group