I got an interview question where I need to do k operation on an array and get the sum of final array.
For each iteration, any random element needs to be picked, divi