Selection Sort Problem In Leetcode Python