string s = "HackerEarth";
is a string literal.Two strings and comprising of lower case English letters are compatible if they are equal or can be made equal by following this step any number of times:
Your task is to determine if given strings and are compatible.
Approach:
Comments