Selection Sort Leetcode Problem 23831