SAP interview question

1) Given a linked list which contains a binary number. Convert it into decimal form.