Easy
Given an array nums, choose two different indices i and j and return the maximum value of (nums[i]-1)*(nums[j]-1).
nums
(nums[i]-1)*(nums[j]-1)
Input: nums = [3,4,5,2] Output: 12
Input: nums = [1,5,4,5] Output: 16