Amedus Solutions interview question

reverse a link list