Write a program to determine the factorial of 4 numbersĀ
Due to a rush at the end of the exam, Professor could not arrange the answer sheets in the
sequence as desired. However, he mentioned the correct location of each answer sheet with it.
Now, Professor wants all the answer sheets in the desired sequence.prepare a linklist having a data, the location, and the link node to arrange the data in the in the increasing manner of the location variable.
HINT: Item ,location ,linknode
input: 5 3 ->6 2 ->4 1->2 4 NULL
output: 4 1->6 2->5 3->2 4 NULL