add solution for MergeSortedArray