Everpure Interview Question

binary tree and multithreading question