C Exception Nullptr Thrown For Reverse Linked List Stack Overflow

C Exception Nullptr Thrown For Reverse Linked List Stack Overflow