Nagarro Interview Question

Angular JS objects Reverse link list using existing list only