class Solution { func maxProduct(_ nums: [Int]) -> Int { var m = 0 for i in 0.. m { m = p } } } return m } }