merge operation in 1d array

welcome to shbcf.ru