Everpure interview question

binary tree and multithreading question