Selection Sort Leetcode Problem 238