eBay interview question

Various algorithm questions related variations of binary tree optimization and counting efficiently