Altimetrik interview question

C++ code to merge two arrays