have an array `data` of 50 elements and I display them on a UITable view. I have a button on each UITableViewCell and when I click on that button I highlight the cell by adding a border to it. The data from the highlighted cells are stored in another array `highlightedData`. This `highlightedData` array's length is always `2` because I only want two cells highlighted in the table view. When I select the third cell, I remove the element `highlightedData.remove(at: 1)` and append the new data from the third cell in `highlightedData`. I want to remove the border of the cell when it's data was removed from `highlightedData` array. Is there a way that I can get the cell from table view based on the index of its data in the `data` array? I don't want the cell returned by `indexPath` but by an `integer`.

Here is my code for better understanding:

```
func buttonClicked(_ cell: ExampleTableViewCell) {
        guard let indexPath = tableView.indexPath(for: cell) else {
            return
        }
        if highlightedData.count == 2 {
                 // here I want to get the cell of the element at the index: Int = data.indexOf([highlightedData[1]])
                 highlightedData.remove(at: 1)
                }
            highlightedData.append(data[indexPath.row])
        if highlightedData.count == 2 {
            print("open a new vc")
        }
    }

```