Visa Inc. Interview Question

write code on a white board to implement a tree and add an element at a particular node