Pergunta de entrevista da empresa FactSet

code atoi function and finding lowest common ancestor of tow nodes in a tree