Cloudera interview question

leetcode easy, reverse a linked list (solve in java)