using System.Collections.Generic;
public static void Main()
int[] arrint={20,2022,333,4232,50};
Dictionary<char,int> occurance= new Dictionary<char,int>();
for(int i=0; i< arrint.Length; i++)
char[] temp=arrint[i].ToString().ToCharArray();
for(int t=0; t< temp.Length; t++)
if(!occurance.ContainsKey(temp[t]))
occurance.Add(temp[t],1);
Console.WriteLine(occurance.FirstOrDefault(x=> x.Value == occurance.Values.Max()).Key);