
You are given two 0-indexed integer arrays nums1 and nums2 of equal length n and a positive integer k . You must choose a subsequence of indices from nums1 of length k .
For chosen indices i _0 , i _1 , ..., i _k - 1 , your score is defined as:
The sum of the selected elements from nums1 multiplied with the minimum of the selected elements from nums2 .
It can defined simply as: (nums1[i _0 ] + nums1[i _1 ] +...+ nums1[i _k - 1 ]) * min(nums2[i _0 ] , nums2[i _1 ], ... ,nums2[i _k - 1 ]) .
Return the maximum possible score.
A subsequence of indices of an array is a set that can be derived from the set {0, 1, ..., n-1} by deleting some or no elements.
n == nums1.length == nums2.length1 <= n <= 10 ^50 <= nums1[i], nums2[j] <= 10 ^51 <= k <= n