Max sum of given K elements in array

Max sum of given K elements in array