Kth Smallest Element Leetcode In Array Javascript Length Of A String