Selection Sort Leetcode Problem 23