As the input has spaces in them so the two user input strings are not able to differentiate the strings in the input.
Code is working fine for custom input.
Refer for code: -
As the input has spaces in them so the two user input strings are not able to differentiate the strings in the input.
Code is working fine for custom input.
Refer for code: -