using System.Collections.Generic;
public int solution(int X, int[] A)
var c = new HashSet<int>();
for (var i = 1; i <= X; i++)
for (var i = 0; i < A.Length; i++)
public static void Main()
Console.WriteLine(s.solution(5,new int[]{1, 3, 1, 4, 2, 3, 5}));