Moody's interview question

merge 2 arrays virtual functions