There are multiple instances for product category so it is more difficult to solve. Θ(mn)\Theta(m^n)Θ(mn)