Bounteous x Accolite interview question

Reverse a linked list javascript questions