Selection Sort Problem In Leetcode 150