Hexaware Technologies interview question

Tree Sort, Binary sort program