Remove duplicate elements: Best scores for each user

Given a list, remove duplicate elements, while preserving the order of the elements.