Given a String S. Your task is to remove the given two strings(M and N) completely from the given string S. If String is completely removed than print -1.
The first line of input contains an integer T denoting the no of test cases. Then T test cases follow. Th first line of input contains a String S. And next line contains two Strings which is to be removed M and N.
Print the respective output in the respective line.
1<=|Length of Strings|<=50
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.