Cashfree interview question

return max possible value of the array after performing k operations