Test cases not passing


all the custom cases are giving correct answer but the test cases are not passing

size of character array is too small make it around 10^6 and then try

also don’t calculate size of string it will give TLE

see the alternative in modified Code

Modified Code