Bounteous x Accolite Interview Question

1- Simple java question, 2 .Linked list reverse