Selection Sort Leetcode Problem 231