What is the error
public class Solution { public int Solution(string L, int start) { int length = L.Length; int[] charCount = new int[2]; // Array to store counts of 'a' and 'b' // Count initial occurrences of 'a' and 'b' for (int i = 0; i < length; i++) { charCount[L[i] == 'a' ? 0 : 1]++; } // Calculate the difference between 'a' and 'b' counts int diff = Math.Abs(charCount[0] - charCount[1]); // If difference is odd, it's impossible to equalize if (diff % 2 == 1) { return -1; } // Simulate game by iterating through the string cyclically int currentPos = start; int moves = 0; while (diff > 0) { char currentChar = L[currentPos % length]; int oppositeIndex = currentChar == 'a' ? 1 : 0; // Check if switching current character would reduce the difference if (charCount[oppositeIndex] < charCount[currentChar])