BNP Paribas interview question

Finding xpaths for a given element in real time