Sorted Permutation Rank Leetcode Two Robots