Kth Smallest Element Leetcode In Python