Bankcard Servcies interview question

Binary Search Tree algorithm and time complexity