Reverse a linked list

Signed-off-by: Lokesh Gyanchandani <lokesh.sgc@gmail.com>