Selection Sort Algorithm Leetcode