Pregunta de entrevista de eBay

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