How to Solve "1331 Rank Transform of an Array" on LeetCode? - Javascript

Published --