Micron Technology interview question

merge array without using extra space