Duplcate Character Formatting

On submitting the solution,all the test cases except Test Case 2 pass. Why is it so?

Correction: except Test Case 1. Test Case 2 is working fine

@gptradhika1208 share your code using cb ide so that i can look

@gptradhika1208 just increase the array size to 10000 instead of 1000
dont forget to hit like and mark resolved if cleared :smiley: