struct node of doubly linked list with four pointer next , prev , up , down
class Node { constructor ( ) { this . data = 0 ; this . next = null ; this . prev = null ; this . up = null ; this . down = null ; } }