Function to check operation can be perform or not
function possible ( arr , N , mid , K ) { let add = 0 ; for ( let i = parseInt ( N / 2 , 10 ) - ( N + 1 ) % 2 ; i < N ; ++ i ) { if ( mid - arr [ i ] > 0 ) {