Insert a node at the head of a linked list in Java HackerRank.

Insert a node at the head of a linked list in Java