nth Longest String Sortation
问题 I have written code for determining the nth longest string in an array of strings. Below I have test cases listed from the Codewars kata. Instructions : Implement the function longest(array,n) where you will be given an array of strings and then return the nth longest string in that array. e.g. arr = ['Hello','World','Codewars','Katas'] n = 3; should return 'World' because 'Codewars' length = 8 , 'Hello' length = 5, so that is the 2nd longest word and then 'World' (although also word length