using System.Collections.Generic;
public static void Main()
bool result = HashSet(n);
Console.WriteLine("Output: {0}", result);
Console.WriteLine("Expected: {0}", expected);
public static bool IsHappy(int n)
Console.WriteLine("Sum: {0}", sum);
public static bool HashSet(int n) {
HashSet<int> nums = new HashSet<int>();