Attention:Worth solving


It’s a nice question. But the irregularity of IB compiler is really a matter of concern. My same solution gives TLE initially and gets submitted successfully in subsequent runs.
Also, don’t forget to put the base condition if both the given strings are equal. Maybe it’ll help, maybe not xD