Construction of Linked List
Input:
n = 5
arr = [1,2,3,4,5]
Output:
1 2 3 4 5
Explanation: Linked list for the given array will be 1->2->3->4->5
Here, the head points to a dummy which doesn't store anything. Later, when we return the new head pointer...