PalTech interview question

3. Question where we have to return K largest terms in an array. Solved with selection sort method.