Hexaware Technologies QA automation utilities may need to reorder captured words while preserving the original list object. Given a list of words and two valid indices, swap the words at those indices in place without declaring a third variable or creating another list.
Implement swap_words(words, first_index, second_index).
words, a mutable list of strings; first_index and second_index, two valid integer indices.def swap_words(words, first_index, second_index):