Max and Second Max number in Array
public int maxProduct(int[] nums) {\n        \n        int max  = Integer.MIN_VALUE;\n        int secondMax = Integer.MIN_VALUE;\n        \n        for(int i = 
public int maxProduct(int[] nums) {\n        \n        int max  = Integer.MIN_VALUE;\n        int secondMax = Integer.MIN_VALUE;\n        \n        for(int i = 0;i< nums.length;i++){\n            \n            if(nums[i] > max){   \n                secondMax = max;\n                max  = nums[i];\n            }else if(nums[i] > secondMax){\n                secondMax = nums[i];\n            }\n        }\n        \n        return (max-1)*(secondMax-1);\n        \n    }
[]