using System.Collections.Generic;
public static void Main()
var hashSet = new HashSet<int>(2);
Console.WriteLine(hashSet.Contains(2));
public ListNode ReverseList(ListNode head) {
helper(head, out var newHead);
private ListNode helper(ListNode current, out ListNode newHead) {
var next = helper(current.next, out newHead);
public ListNode(int val=0, ListNode next=null) {