Your question is Swap Two Words Without Temp. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
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):