Accenture interview question

How to locate elements Which is best css Or xpath