/*
Question :
Part 1) Write a function to reverse a Linked List.
Ex: list = 1 -> 2 -> 3 -> NULL, Result = 3 -> 2 -> 1 -> NULL
Part 2) Write a function to return sum of 2 numbers represented in the form of a linked list.
Ex: num1 = 9 -> 9 -> NULL, num2 = 2 -> 3 -> NULL, Result = 1 -> 2 -> 2 -> NULL.
*/
using System;
public class Program
{
public static void Main()
Console.WriteLine("Hello World");
}
// Helper class.
public class Node
public int Info {get; set;}
public Node Next {get; set;}
public Node(int info)
Info = info;
Next = null;
public static void Display(Node start)
Node temp = start;
while(temp != null)
Console.Write($"{temp.Info} -> ");
temp = temp.Next;
Console.WriteLine("NULL");