Thales interview question

k reverse each linked list.