private static Node reverseLinkedList(Node n){
		if(n==null) return null;
		
		Node prev = null;
		while(n.next!=null){
			Node temp = n.next;
			n.next = prev;
			prev = n;
			n = temp;
		}
		n.next = prev;
		return n;
	}