Tech Mahindra Interview Question

Code for merging two arrays