leetcode:implementation for Merge Sorted Array