Lapin problem

unable to submit below code :-1:

using System;
using System.Collections.Generic;

public class Test
{
public static void Main()
{
int Total = Convert.ToInt32(Console.ReadLine());
Dictionary<char, int> checkString = new Dictionary<char, int>();
bool result = true;
while (Total-- > 0)
{
checkString.Clear();
result = true;
string s = Console.ReadLine();
int textLength = s.Length;
int half = textLength / 2;
int ignoreMiddleElement = textLength % 2 == 0 ? 0 : 1;
int secondHalfIndex = half + ignoreMiddleElement;
for (int i = 0; i < half; i++)
{
if (checkString.ContainsKey(s[i]))
{
checkString[s[i]]++;
}
else
{
checkString.Add(s[i],1);
}
}
for (int i = secondHalfIndex; i < s.Length; i++)
{
if (checkString.ContainsKey(s[i]))
{
checkString[s[i]]–;
}
else
{
result = false;
break;
}
}
if (result != false)
{
foreach (char c in checkString.Keys)
{
if (checkString[c] != 0)
{
result = false;
break;
}
}
}
Console.WriteLine(result ?β€œYes”:β€œNo”);
}
}
}