UKG interview question

Leetcode: Convert Binary Number in a Linked List to Integer