what is wrong in this code ?
Https://ide.codingblocks.com/s/199849
Hello @meetsoni01041996,
As you are tokenizing the main string,
how would manage the case when the pattern contains space itself.
Question says:
String2 can be a string containing spaces also.
Hope, this would help.
Give a like if you are satisfied.
Oh okay thanks I will take care of it and will change my logic