Leetcode Kth Smallest Element In Array In Python