Basic Pattern Question In Leetcode 75 Sort