1331. Rank Transform of an Array - Solutions and Explanation | Vultr Docs