--

thanks @Rishav for your suggestion, but your solution has few flaws:

1. it will not work with these type of inputs `cyc cy c`

2. it is not optimised, like we don't have to run loop till the end of the string.

--

--

राहुल मिश्रा
राहुल मिश्रा

No responses yet