Pregunta de entrevista de Uber

Search through binary tree and shorten a URL.