you give array string word 0indexedin operation pick distinct index j wordsi nonempty string character wordsi position wordsjreturn true string word equal number operation false example 1input word abcaabcbcoutput trueexplanation move words1 words2to words1 abc words2 abcAll string equal abc return trueexample 2input word abaoutput falseexplanation it impossible string equal operation Constraints1 wordslength 1001 wordsilength 100wordsi consist lowercase english letter