Microsoft interview question

Swap the adjacent leaf nodes in binary tree