Xoriant interview question

OOPS concepts, Reverse the string, Locators related questions.