PayPal Interview Question

Binary Tree, dynamic programming, recursion, Design patterns