CitiusTech interview question

Was asked to write multiple scenarios xpath.