Amazon interview question

Algorithms, binary tree, recursion and LinkedList