public void traverseLinkedList(SingleListNode p)
        {
            if (p == null)
            {
                Console.WriteLine("Empty list");
            }
            SingleListNode ptr = p;

            while (ptr != null)
            {
                ptr.print();
                ptr = ptr.next;
            }
            Console.WriteLine();
        }