IBM Interview Question

How to write locators in selenium