This is a good example of algorithm and it related to data structure please try it and put you results here. we will discuss bad and good thing about your coding skill,
Q. Make a function that reverse the linked list. reversing the linked list means that the last element will becomes first one , again need not to go for fancy coding , you can work on algorithm also (best thing),
I have prepared nice ppt and coding algorithm that will tell how to do it efficiently, I will put but after getting some response to you. please ask queries here. tell friend about community may be he may need this community more than you.

Solution:
Click here for Solution : http://www.techfandu.org/reverse_the_linked_list.html