It can be solved by maintaining a maximum rating and a lexicographically minimum handle having the maximum rating.
Just iterate through all the handles and update maximum rating and lexicographically minimum handle having the maximum rating as needed. (string comparing will be helpful here)