Percolate Interview Question

binary tree, hashtables