Solved Merge Sorted Array Problem