Alice and Bob Flower Game

Alice chooses one flower number from 1 through n, and Bob chooses one flower number from 1 through m. A pair is winning when the chosen numbers have different parity. Return the number of winning pairs without applying a modulus.

Examples
Input: [3,2]
Output: 10
Hints

Alice and Bob Flower Game

Alice chooses one flower number from `1` through `n`, and Bob chooses one flower number from `1` through `m`. A pair is winning when the chosen numbers have different parity. Return the number of winning pairs without applying a modulus.