Write a function with the signature below that returns the sum of the last k elements of a singly linked list that contains integers.

int returnSumOfLastKNodes(Node* head, int k)



Example:

10 -> 5->8->15->11->9->23

10 represents the head node, returnSumOfLastKNodes(Node* head, 4) will return 58.