update solutionf or Merge sorted Array