https://www.codechef.com/viewsolution/25405147
What is the problem with this simple Question???
Dude again make char s[n+1], r[n+1] That’s it AC code click me here
but why it should be n+1??
Strings are terminated with an extra null character ‘\0’ . So, it has to be n+1.