give array integer arr integer kA value arri say strong value arrj arri m arrj m m median arrayif arri m arrj m arri say strong arrj arri arrjReturn list strongest k value array return answer arbitrary ordermedian middle value order integer list More formally length list n median element position n 1 2 sorted list 0indexedfor arr 6 3 7 2 11 n 5 median obtain sort array arr 3 2 6 7 11 median arrm m 5 1 2 2 the median 6for arr 7 22 173 n 4 median obtain sort array arr 7 3 17 22 median arrm m 4 1 2 1 the median 3 Example 1input arr 12345 k 2Output 51explanation Median 3 element array sort strong 51423 the strong 2 element 5 1 1 5 accept answerplease note 5 3 1 3 5 strong 1 5 1example 2input arr 11355 k 2Output 55explanation Median 3 element array sort strong 55113 the strong 2 element 5 5example 3input arr 6711768 k 5output 118667explanation Median 7 element array sort strong 1186677any permutation 118667 accept Constraints1 arrlength 105105 arri 1051 k arrlength