Domanda di colloquio di Amazon

Write the code to implement some data structure similar to binary tree.