Nagarro interview question

Angular JS objects Reverse link list using existing list only