C # program to return first node of loop
using System ; public class GFG { public class Node { public int key ; public Node next ; } ; static Node newNode ( int key ) { Node temp = new Node ( ) ; temp . key = key ; temp . next = null ; return temp ; }