How do i solve linked list questions?

Do i have to use stl or construct the function?

No…you have to construct the function. You do not have to use stl

How do i take input? In the tutorial we had assumed that every list is terminated with 0

Every list is terminated by NULL. You can take input as making an insert at head or insert at tail function as per the question.