Hello. I have understood the problem and coded it too. I was getting wrong answer in 2 test cases and right in one. So i downloaded the test cases and the string size was so large that even on using long long int my code did not run. Please help on how to solve test cases of this large size.