My solution: https://ide.codingblocks.com/s/453402
Question: https://online.codingblocks.com/app/player/178555/content/173738/4894/code-challenge
When I try to compile for “abcd”, “abc”, “mmmnn”, I am getting the required answer while compiling.
But, for all the 4 test cases I’m getting wrong answer.