UST interview question

To build a Linked List