MediumThe difficulty is Medium, because, although the problem requires understanding of ranking orders and eliminating duplicates, which involves some intermediate reasoning across multiple steps, the operations and logic needed are relatively straightforward and can be implemented with a clear sequence of commands once the concept is understood.