Druva interview question

string challenge array challenge replace the word