Amazon interview question

Swapping two elements in Binary tree