Solution for Merge Sorted Array.