Google interview question

2 different strings in array manipulation problems