On submitting the solution,all the test cases except Test Case 2 pass. Why is it so?
Duplcate Character Formatting
Correction: except Test Case 1. Test Case 2 is working fine
@gptradhika1208 just increase the array size to 10000 instead of 1000
dont forget to hit like and mark resolved if cleared