SAP interview question

write a simple code for reversing a single-connected linklist In C.