Infosys Interview Question

Reverse a linklist, rotate a array