C program to print linked list

C program to print linked list

Input:

5
1 2 3 4 5

Output:

1 2 3 4 5

Implementation: