IBM interview question

Selenium locator, python programs to swap words, abstraction