BlackRock interview question

convert a binary linked list into an integer