Infosys interview question

Binary search trees and data structures o