using System;
namespace ConsoleApp3
{
internal class Program
{
static void Main(string[] args)
{
string str = "aateu";
int[] countarr = new int[26];
for (int i = 0; i < str.Length; i++)
{
countarr[str[i] - 'a']++;
}
for(int i=0; i<countarr.Length;i++)
{
Console.WriteLine($"{(char)(i+'a')}={countarr[i]}");
}
}
}
}
using System;
namespace ConsoleApp3
{
internal class Program
{
static void Main(string[] args)
{
string str = "arateu";
int[] countarr = new int[26];
for (int i = 0; i < str.Length; i++)
{
countarr[str[i] - 'a']++;
}
for(int i = 0;i < str.Length; i++)
{
if (countarr[str[i] - 'a'] == 1) {
Console.WriteLine(str[i]);
break;
}
}
}
}
}
