I've been working on a code for a text processor and after creating this bit of code it started to tell me of a stack overflow. I reduced the array size from 1000000 to 1000, but now it has the assertion error within it and I dont know how to fix it. Any adivce would be apprecited!