Kaar Technologies Interview Question

reverse a linked list(both double,single)