PYTHON: Find duplicate elements in the first index of each item and removing items based on the second index : <p>I have a 2D array storing a name and score for different people. The program should sort through the array, and if there are multiple scores per person, it should remove them all except the highest one.</p>

<pre><code>scores = [["Alexander", 7], ["Lucy", 4], ["Kieran", 5], ["Alexander", 4]]
</code></pre>

<p>Should remove ["Alexander", 4] as there are two items in the array with name "Alexander" and 4 is the lowest score out of them both.</p>
