Sponsored
Use these hints if you're stuck. Try solving on your own first.
Use a temporary array to copy the array and sort it.
The rank of each element is the number of unique elements smaller than it in the sorted array plus one.
Solve with full IDE support and test cases