Verily interview question

please reverse a linked list