Merge two sorted integer arrays nums1 and nums2 in-place.Input: nums1, nums2, m, n where nums1 has m+n length and nums2 has n elements.Constraints: nums1 and nums2 are already sorted in non-decreasing order.Code implements merging nums2 into nums1 from the end by comparing elements.