The Hartford interview question

How to locate webElement, how to write a code.