Should space also be considered as the character

in the question should space should also be considered as the character

Hey @luckypavan
yes you’re supposed to check spaces also.
Consider it as a character In string
S2 can also contain spaces