I have a singly linked list of integers. The node is defined as
class Node { public: int value; Node *next = NULL; };