Top 10 Watch Rates

Given lists N and R, video names and their watch rates, write a function that will return the videos with the top 10 watch rates. Video names may appear more than once.


N = ["abc", "def", "ghi", "abc", "xyz"] and R = [10, 15, 10, 12, 100] should return ["xyz", "abc", "def", "ghi"].

Contributed by Berkan Teber