Hey Yash, if you want to locate a particular link text among multiple match results, you can use List<WebElements> to get all the matching results and then iterate through them using foreach. You can also specify the index to get desired element from specific location. Although providing the relative xpath or any other unique locator should be an ideal approach, but to resolve your issue, you can do something like this:
driver.findElement(By.xpath("(//*[@class='weblinks'])[2]");